package br.com.android.boaviagem;

import java.util.Calendar;

import android.app.Activity;
import android.app.Dialog;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

public class GastoActivity extends Activity {
	private int ano, mes, dia;
	private Button dataGasto;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.gasto);
		
		Calendar calendar = Calendar.getInstance();
		ano = calendar.get(Calendar.YEAR);
		mes = calendar.get(Calendar.MONTH);
		dia = calendar.get(Calendar.DAY_OF_MONTH);
		
		dataGasto = (Button) findViewById(R.id.data);
		dataGasto.setText(dia+"/"+mes+"/"+ano);
	}
	
	public void selecionarData(View view) {
		showDialog(view.getId());
	}
	
}
